﻿<Window x:Class="BbsbWebService.TaskDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
    xmlns:swf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Icon="MainIcon.ico"
    Title="Task Details" Height="426" Width="412">
    <Window.Resources>
        <DataTemplate x:Key="baseItems" DataType="BbsbService.Classes.BaseItem" >
            <StackPanel Margin="10 10 10 0" Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid Height="394">
        <TextBox Height="23" Margin="101,13,169,0" Name="nameTxt" VerticalAlignment="Top" />
        <Label Height="28" HorizontalAlignment="Left" Margin="31,11,0,0" Name="label2" VerticalAlignment="Top" Width="68">Name</Label>
        <ListBox HorizontalAlignment="Left" Margin="8,181,0,46" Name="allItems" Width="176" SelectionMode="Single" ItemTemplate="{StaticResource baseItems}" SelectionChanged="allItems_SelectionChanged" />
        <ListBox HorizontalAlignment="Right" Margin="0,181,10,46" Name="allGroups" Width="176" SelectionMode="Single" ItemTemplate="{StaticResource baseItems}" SelectionChanged="allGroups_SelectionChanged" />
        <Button Height="23" Margin="163,0,124,10" Name="saveBtn" VerticalAlignment="Bottom" Click="saveBtn_Click">Save</Button>
        <Button Height="23" Margin="0,0,10,10" Name="cancelBtn" VerticalAlignment="Bottom" Click="cancelBtn_Click" HorizontalAlignment="Right" Width="103">Cancel</Button>
        <RadioButton GroupName="tasks" Content="One Off Task" Height="16" HorizontalAlignment="Left" Margin="31,50,0,0" Name="oneOffTaskBtn" VerticalAlignment="Top" Checked="oneOffTaskBtn_Checked" />
        <RadioButton GroupName="tasks" Content="Recurring Task" Height="16" HorizontalAlignment="Left" Margin="150,50,0,0" Name="recurringTaskBtn" VerticalAlignment="Top" Checked="recurringTaskBtn_Checked" />
        <RadioButton GroupName="tasks" Content="Scheduled Task" Height="16" HorizontalAlignment="Left" Margin="277,50,0,0" Name="scheduledTaskBtn" VerticalAlignment="Top" Checked="scheduledTaskBtn_Checked" />
        <Grid Height="52" HorizontalAlignment="Left" Margin="12,72,0,0" Name="oneOffGrid" VerticalAlignment="Top" Width="366" Visibility="Visible" >
            <DatePicker Height="25" HorizontalAlignment="Left" Margin="19,14,0,0" Name="oneOffDate" VerticalAlignment="Top" Width="115" />
        </Grid>
        <Grid Height="52" HorizontalAlignment="Left" Margin="12,72,0,0" Name="recurringGrid" VerticalAlignment="Top" Width="366" Visibility="Hidden" >
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="19,14,0,0" Name="recurringCbo" VerticalAlignment="Top" Width="120" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="240,14,0,0" Name="magnitudeCbo" VerticalAlignment="Top" Width="120" />
            <Label Content="Magnitude:" Height="28" HorizontalAlignment="Left" Margin="171,14,0,0" Name="label3" VerticalAlignment="Top" />
        </Grid>
        <Grid Height="52" HorizontalAlignment="Left" Margin="12,72,0,0" Name="scheduledGrid" VerticalAlignment="Top" Width="366" Visibility="Hidden" >
            <CheckBox Content="Monday" Height="16" HorizontalAlignment="Left" Margin="10,3,0,0" Name="mondayChb" VerticalAlignment="Top" />
            <CheckBox Content="Tuesday" Height="16" HorizontalAlignment="Left" Margin="89,3,0,0" Name="tuesdayChb" VerticalAlignment="Top" />
            <CheckBox Content="Wednesday" Height="16" HorizontalAlignment="Left" Margin="186,3,0,0" Name="wednesdayChb" VerticalAlignment="Top" />
            <CheckBox Content="Thursday" Height="16" HorizontalAlignment="Left" Margin="277,3,0,0" Name="thursdayChb" VerticalAlignment="Top" />
            <CheckBox Content="Friday" Height="16" HorizontalAlignment="Left" Margin="10,27,0,0" Name="fridayChb" VerticalAlignment="Top" />
            <CheckBox Content="Saturday" Height="16" HorizontalAlignment="Left" Margin="89,27,0,0" Name="saturdayChb" VerticalAlignment="Top" />
            <CheckBox Content="Sunday" Height="16" HorizontalAlignment="Left" Margin="186,27,0,0" Name="sundayChb" VerticalAlignment="Top" />
        </Grid>
        <Label Content="Time" Height="28" HorizontalAlignment="Left" Margin="22,145,0,0" Name="label1" VerticalAlignment="Top" Width="57" />
        <wfi:WindowsFormsHost Margin="83,147,206,221" >
            <swf:DateTimePicker x:Name="timePicker" Format="Custom" CustomFormat="HH:mm" ShowUpDown="True"/>
        </wfi:WindowsFormsHost>
        <Label Content="Power" Height="28" HorizontalAlignment="Left" Margin="204,145,0,0" Name="label4" VerticalAlignment="Top" Width="49" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="249,147,0,0" Name="powerCbo" VerticalAlignment="Top" Width="120" />
        <CheckBox Content="Active" Height="16" HorizontalAlignment="Left" Margin="277,16,0,0" Name="isActive" VerticalAlignment="Top" />
    </Grid>
</Window>
